/**
 * Sample React Native App
 * https://github.com/facebook/react-native
 * @flow
 */

import React, { PropTypes, Component } from 'react';
import { requireNativeComponent, View } from 'react-native';

class RnMapView extends Component {
    render() {
        return <RnMapViewManager {...this.props} style={[{flex: 1}]}/>;
    }
}

RnMapView.name = 'RnMapViewManager';
RnMapView.propTypes = {
    zoomLevel: PropTypes.number,
    worldCenter: PropTypes.object,
    ...View.propTypes
}

var RnMapViewManager = requireNativeComponent('RnMapViewManager', RnMapView, {
    nativeOnly: { onChange: true }
});

module.exports = RnMapView;